import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
import '@ant-design/v5-patch-for-react-19';
import {ConfigProvider, theme} from 'antd';
import locale from 'antd/locale/zh_CN';
import 'dayjs/locale/zh-cn';


const rootElement = document.getElementById('root');
if (!rootElement){
    throw new Error('No root element found!');
}
createRoot(rootElement).render(
    <StrictMode>
        <ConfigProvider
            locale={locale}
            theme={{
                algorithm: [theme.darkAlgorithm],
                token: {
                    // colorBgLayout: "rgba(105,105,105)",
                    colorBgLayout: "transparent",
                    // colorBgLayout: "",
                    // colorBgContainer: "rgb(168,27,168)",
                    // colorBgBase: "#333"
                }
            }}
        >
            <App/>
        </ConfigProvider>
    </StrictMode>,
)
